package com.huayal.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huayal.common.utils.PageUtils;
import com.huayal.mall.product.entity.AttrEntity;
import com.huayal.mall.product.entity.AttrGroupEntity;
import com.huayal.mall.product.vo.AttrGroupRelationVo;
import com.huayal.mall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author huayal
 * @email efry@qq.com
 * @date 2024-11-01 20:00:04
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getAttrListByAttrGroupId(Long attrGroupId);

    void deleteAttrGroupRelation(AttrGroupRelationVo[] vos);

    void addAttrRelation(List<AttrGroupRelationVo> vos);

    List<AttrGroupWithAttrsVo> getAttrgroupWithAttrsByCatalogId(Long catalogId);
}

